import request from '@/utils/request'

// 发送验证码
export const verify = params => request.get(`v1_0/sms/codes/${params}`)

// 登录校验验证码
export const userLogin = data => request.post('v1_0/authorizations', data)

// 获取用户自己信息
export const userMy = () => request.get('/v1_0/user')

// 获取用户个人资料
export const userProfile = () => request.get('/v1_0/user/profile')

// 编辑个人资料
export const userBianji = data => request.patch('/v1_0/user/profile', data)
